package com.agriculture.competition.domain;

import com.agriculture.common.core.annotation.Excel;
import com.agriculture.common.core.web.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * 比赛受邀人对象 ja_competition_invitation
 *
 * @author agriculture
 * @date 2025-03-10
 */
@Data
public class JaCompetitionInvitation extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long id;

    /**
     * 发起人
     */
    @Excel(name = "发起人")
    private Long promoter;

    /**
     * 比赛名
     */
    @Excel(name = "比赛名")
    private String competitionName;

    /**
     * 发起人名
     */
    @Excel(name = "发起人名")
    private String promoterName;

    /**
     * 受邀人
     */
    @Excel(name = "受邀人")
    private Long invitedPerson;

    /**
     * 1:已邀请 0：已加入2:已拒绝
     */
    @Excel(name = "1:已邀请 0：已加入2:已拒绝")
    private String status;

    /**
     * $column.columnComment
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String createUser;

    /**
     * $column.columnComment
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String updateUser;

    /**
     * 比赛id
     */
    @Excel(name = "比赛id")
    private Long competitionId;

    /**
     * 受邀人名
     */
    @Excel(name = "受邀人名")
    private String invitedPersonName;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;


    private String roleType;

    private String phone;
}
